import request from '@/utils/request'


// 查询车辆列表
export function getVehicleList(query) {
  return request({
    url: '/gps/getVehicleList',
    method: 'get',
    params: query
  })
}
// 查询车辆实时定位
export function getVehicleLocations(query) {
  return request({
    url: '/gps/getVehicleLocations',
    method: 'get',
    params: query
  })
}

// 获取车辆实时视频url_不指定通道号
export function getVideoUrlAll(query) {
  return request({
    url: '/gps/getVideoUrl_all',
    method: 'get',
    params: query
  })
}

// 获取车辆实时视频url_指定通道号
export function getVideoUrl(query) {
  return request({
    url: '/gps/getVideoUrl',
    method: 'get',
    params: query
  })
}

// 里程统计
export function getMileageStatistics(query) {
  return request({
    url: '/gps/getMileageStatistics',
    method: 'get',
    params: query
  })
}

// 车辆在线数量
export function getOnlineCount(query) {
  return request({
    url: '/gps/getOnlineCount',
    method: 'get',
    params: query
  })
}

// 车辆在线数量
export function getVehicleStatistics(query) {
  return request({
    url: '/gps/getVehicleStatistics',
    method: 'get',
    params: query
  })
}

// 本月视频查看时长
export function getViewVideoTop(query) {
  return request({
    url: '/gps/getViewVideoTop',
    method: 'get',
    params: query
  })
}


// 日在线率及报警趋势统计
export function getLatelyCount(query) {
  return request({
    url: '/gps/getLatelyCount',
    method: 'get',
    params: query
  })
}
// 车辆报警统计
export function getZTreeStatistics(query) {
  return request({
    url: '/gps/getZTreeStatistics',
    method: 'get',
    params: query
  })
}
